'use strict';

module.exports = app => {
  const { INTEGER, STRING } = app.Sequelize;

  const Dblog = app.logModel.define('db_log', {
    id: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },
    name: STRING,
    admin_id: INTEGER,
    table_name: STRING,
    type: STRING,
    create_time: INTEGER,
    note: STRING,
  });
  return Dblog;
};
